<?php

namespace App\Http\Requests\Api\Admin;

use App\Http\Requests\Api\FormRequest;

class AdminPowerSetRouteRequest extends FormRequest
{
    public function rules()
    {
        return [
            'power_id' => ['required', 'numeric'],
            'route_id' => ['required', 'numeric'],
            'status' => ['required', 'boolean'],
        ];
    }

    public function messages()
    {
        return [
            'required' => ':attribute不能为空',
            'numeric' => ':attribute只能是整数',
            'boolean' => ':attribute 的值只能为0或1'
        ];
    }

}
